<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>P07_代码与图文.html</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
    <link rel="stylesheet" type="text/css" href="../css/bootstrap.css">
    <style>
        .row {
            border: 1px red dashed;
            margin: 10px 0;
            height: 100px;
        }

        .ca {
            border: 1px pink solid;
            background-color: lightgray;
            height: 30px;
        }
    </style>
</head>
<body>
<pre class="pre-scrollable" style="width: 500px; height: 200px;">
    <code>
        <var>var a = b + c;</var>
        function demo(a, b){
            alert("this is a test!");
        }

        var <var>a</var> = <var>b</var> + <var>c</var>;
        function demo(a, b){
            alert("this is a test!");
        }

        var a = b + c;
        function demo(a, b){
            alert("this is a test!");
        }
    </code>
</pre>
<kbd>Ctrl+Shift+S</kbd>
<samp>这是sample</samp>
<img src="../img/斗地主.jpg" alt="" class="img-fluid">
<img src="../img/二维码.jpg" alt="" class="img-thumbnail">
<br>
<br>
<img src="../img/二维码.jpg" alt="" class="img-thumbnail float-left">
<img src="../img/二维码.jpg" alt="" class="img-thumbnail float-right">

<!--region 换行-->
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<!--endregion-->
<div class="text-center">图片居中</div>
<img src="../img/二维码.jpg" alt="" class="mx-auto d-block">
<div class="text-center">
    <img src="../img/二维码.jpg" alt="">
</div>

<picture>
    <source srcset="../img/二维码.jpg" media="(max-width:600px)">
    <img src="../img/二维码.jpg" alt="">
</picture>
<br>
<figure class="figure">
    <img src="../img/二维码.jpg" class="figure-img img-thumbnail" alt="">
    <figcaption class="figure-caption text-center">关注我们</figcaption>
</figure>
</body>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
</html>